$OpenBSD: patch-xgraphics_c,v 1.1 2017/05/25 18:09:55 espie Exp $

Index: xgraphics.c
--- xgraphics.c.orig
+++ xgraphics.c
@@ -265,7 +265,7 @@ void placate_x()
   XConfigureEvent *xce;
   XMotionEvent    *xme;
   XButtonEvent    *xbe;
-    checkX;
+    checkX();
 
   while(XCheckWindowEvent(dpy, win, EVENT_MASK, (XEvent *)&event))
 
@@ -307,14 +307,14 @@ void check_X11_stop() {
 
     if (--count == 0) {
 	count = 300;
-	checkX;
+	checkX();
 	placate_x();
     }
 }
 
 int get_button()
 {
-  checkX;
+  checkX(0);
 
   placate_x();
 
@@ -323,7 +323,7 @@ int get_button()
 
 int get_mouse_x()
 {
-  checkX;
+  checkX(0);
 
   placate_x();
 
@@ -333,7 +333,7 @@ int get_mouse_x()
 
 int get_mouse_y()
 {
-  checkX;
+  checkX(0);
 
   placate_x();
 
